#!/bin/bash
# Job name:
#SBATCH --job-name=est
#
# Account:
#SBATCH --account=faculty
#
# Partition:
#SBATCH --partition=standard
#
# Wall clock limit:
#SBATCH --time=1-00:00:00
#
## Number of cores (total)
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=12
#
#SBATCH --mem 110000
#
#SBATCH --array=1-100
#SBATCH --output=array_job_%A_task_%a_out.txt
#SBATCH --error=array_job_%A_task_%a_err.txt
#
#
## Command(s) to run:

#srun --pty bash -l
# export OMP_THREAD_LIMIT=${SLURM_JOB_CPUS_PER_NODE}
#echo "Job cpus: $SLURM_JOB_CPUS_PER_NODE"
##module load matlab/R2019b

module load matlab/R2021b
#module load knitro/12.1/12.1.1
#module load stata/17.0

matlab -r script_$SLURM_ARRAY_TASK_ID